package com.dgz.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author duguozheng
 * @Date 2023/05/09  16:01
 * @Description 新增相册功能 参数的封装类
 * @Version 1.0
 */
@Data
public class AlbumAddNewParam implements Serializable {

    @NotNull(message = "添加相册失败，必须提交相册名称！")
    @ApiModelProperty(value = "相册名称", required = true, example = "可乐的相册")
    private String name;

    @NotNull(message = "添加相册失败，必须提交相册描述！")
    @ApiModelProperty(value = "相册描述", required = true, example = "这是82年可乐的相册")
    private String description;

    @NotNull(message = "添加相册失败，必须提交相册排序序号！")
    @Range(max = 99, message = "添加相册失败，相册排序序号必须在0~99之间")
    @ApiModelProperty(value = "排序序号[必须在1~255之间]", required = true, example = "99")
    private Integer sort;
}
